﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

using System.Threading.Tasks;

namespace STF.OrangeDog.Model
{
    public class HAdminsPrimission:BaseModel

    {
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "菜单名称")]
        [ForeignKey(nameof(HRoles))]
        public int RolesId { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "菜单链接")]
        [ForeignKey(nameof(HSystemMenu))]
        public int SystemMenuId { get; set; }
    }
}
